 package uk.co.mmscomputing.device.twain;
 
 public class TwainFileSystem
   implements TwainConstants
 {
   TwainSource source;
   byte[] buf;
 
   TwainFileSystem(TwainSource paramTwainSource)
   {
     this.source = paramTwainSource;
     this.buf = new byte[1124];
   }
 
   public void setInputName(String paramString) {
     int i = paramString.length();
     if (i < 255) {
       byte[] arrayOfByte = paramString.getBytes();
       for (int j = 0; j < i; j++) {
         this.buf[j] = arrayOfByte[j];
       }
       this.buf[i] = 0;
     }
   }
 
   public void setAutomaticCaptureDirectory()
     throws TwainIOException
   {
     this.source.call(1, 14, 2059, this.buf);
   }
 
   public void changeDirectory(String paramString) throws TwainIOException {
     setInputName(paramString);
     this.source.call(1, 14, 2049, this.buf);
   }
 
   public void copy() throws TwainIOException {
     this.source.call(1, 14, 2058, this.buf);
   }
 
   public void createDirectory() throws TwainIOException {
     this.source.call(1, 14, 2050, this.buf);
   }
 
   public void delete() throws TwainIOException {
     this.source.call(1, 14, 2051, this.buf);
   }
 
   public void formatMedia() throws TwainIOException {
     this.source.call(1, 14, 2052, this.buf);
   }
 
   public void getClose() throws TwainIOException {
     this.source.call(1, 14, 2053, this.buf);
   }
 
   public void getFirstFile()
     throws TwainIOException
   {
     this.source.call(1, 14, 2054, this.buf);
   }
 
   public void getInfo() throws TwainIOException {
     this.source.call(1, 14, 2055, this.buf);
   }
 
   public void getNextFile() throws TwainIOException {
     this.source.call(1, 14, 2056, this.buf);
   }
 
   public void rename() throws TwainIOException {
     this.source.call(1, 14, 2057, this.buf);
   }
 }

